/*  
 *S5P6818 SFR address define
 *hqyj
 *2017.10.1
 *version: 1.0
*/

#ifndef ___S5P6818_GPIO_H_
#define ___S5P6818_GPIO_H_

/************** GPIO ****************/

/************* GPIOA register**************/
typedef struct{
	unsigned int OUT;
	unsigned int OUTENB;
	unsigned int DETMODE0;
	unsigned int DETMODE1;
	unsigned int INTENB;
	unsigned int DET;
	unsigned int PAD;
	unsigned int Reserved1;
	unsigned int ALTFN0;
	unsigned int ALTFN1;
	unsigned int DETMODEEX;
	unsigned int Reserved2;
	unsigned int Reserved3;
	unsigned int Reserved4;
	unsigned int Reserved5;
	unsigned int DETENB;
	unsigned int SLEW;
	unsigned int SLEW_DISABLE_DEFAULT;
	unsigned int DRV1;
	unsigned int DRV1_DISABLE_DEFAULT;
	unsigned int DRV0;
	unsigned int DRV0_DISABLE_DEFAULT;
	unsigned int PULLSEL;
	unsigned int PULLSEL_DISABLE_DEFAULT;
	unsigned int PULLENB;
	unsigned int PULLENBD_DISABLE_DEFAULT;
} gpio;

#define  GPIOA     (* (volatile gpio *)0xC001A000)

/************* GPIOB register**************/
#define  GPIOB     (* (volatile gpio *)0xC001B000)

/************* GPIOC register**************/
#define  GPIOC     (* (volatile gpio *)0xC001C000)

/************* GPIOD register**************/
#define  GPIOD     (* (volatile gpio *)0xC001D000)

/************* GPIOE register**************/
#define  GPIOE     (* (volatile gpio *)0xC001E000)


#endif
